import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/app_update_entity.g.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';

export 'package:enterprise_v6_app/generated/json/app_update_entity.g.dart';

@JsonSerializable()
class AppUpdateEntity {

	AppUpdateEntity();

	factory AppUpdateEntity.fromJson(Map<String, dynamic> json) => $AppUpdateEntityFromJson(json);
  /// 升级介绍
	String? upgradeDescription = '';
  /// 是否需要升级
	int? isReload = 0;
  /// 是否强制升级 1:强制升级 0:不强制升级
	int? isForcedUpgrade = 0;
  /// 下载地址
	String? downloadAddress = '';
  /// 版本号
	String? version = '';

	Map<String, dynamic> toJson() => $AppUpdateEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
